<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <video src="fils://"></video>

  <script>

    var lis = document.getElementsByTagName('li');

    for (let index = 0; index < lis.length; index++) {
      const element = lis[index];
      console.log('2243')
      element.onclick = function(){
        console.log(index);
      }
    }
  </script>
  
</body>
</html>